import axios from '@/utils/request'

// 首页-获取所有分类
export const getAllCategoryAPI = () => axios({
  url: '/home/category/head',
  method: 'GET'
})

// 首页-获取推荐商品-APP
export const getSuggestGoodsAPI = (limit = 4) => axios({
  url: '/home/brand',
  params: {
    limit
  }
})

// 根据id获取一级分类
export const getCategoryAPI = (id) => axios({
  url: '/category',
  params: { id }
})
